package edu.towson.greenteam.order;


public class OrderNotServedItr extends OrderItr {

	public OrderNotServedItr(Orders ordersIntance) {
		this.allOrders = ordersIntance;
		calcNext();
	}

	@Override
	public boolean canProceed(Order testOrder) {
		//only can proceed if the order isn't served
		return !testOrder.isServed();
	}

}
